package com.weiyu.bultrasound.core.dao;

import com.weiyu.bultrasound.core.model.entity.Files;

import java.util.List;

public interface FilesMapper {

    int deleteById(Long id);

    int insert(Files record);

    Files getById(Long id);

    int updateById(Files record);

    /**
     * @description 根据条件获取列表
     * @Param: [record]
     * @Return: java.util.List<com.weiyu.bultrasound.core.model.entity.Files>
     * @Author: abner chow
     * @Date: 2019/8/20 17:41
     */
    List<Files> getList(Files record);

    /**
     * @description 批量插入
     * @Param: [list]
     * @Return: int
     * @Author: abner chow
     * @Date: 2019/8/20 17:41
     */
    int insertByBatch(List list);

    /**
     * @description 根据applicationsId获取未同步到ftp的文件列表
     * @Param: [applicationsId]
     * @Return: java.util.List<com.weiyu.bultrasound.core.model.entity.Files>
     * @Author: abner chow
     * @Date: 2019/8/20 17:41
     */
    List<Files> getUnSynchronizeList(Long applicationsId);

    
    /**
     * @description
     * @Param: [applicationsId]
     * @Return: java.util.List<com.weiyu.bultrasound.core.model.entity.Files>
     * @Author: abner chow
     * @Date: 2019/8/20 18:03
     */
    List<Files> getSynchronizeList(Long applicationsId);

}